﻿using System;
using fastCSharp;

namespace diantou.web.ajax
{
    /// <summary>
    /// 通知操作操作
    /// </summary>
    [fastCSharp.code.cSharp.ajax(IsPool = true)]
    class notice : userHandle<notice>
    {
        /// <summary>
        /// 设置通知读取状态
        /// </summary>
        /// <param name="ids">通知标识集合</param>
        /// <param name="onReturn"></param>
        public void Read(int[] ids, Action<fastCSharp.net.returnValue> onReturn)
        {
            if (currentUser.IsChangeVisit) diantou.dataAccess.tcpCall.notice.read(ids, currentUser.Id, onReturn);
            else onReturn(new fastCSharp.net.returnValue { Type = fastCSharp.net.returnValue.type.Unknown });
        }
    }
}
